package com.wanxing.sellerapp.emqx.handlers


import com.alibaba.fastjson.JSONObject
import com.wanxing.sellerapp.emqx.entity.EmqPayload
import com.wanxing.sellerapp.emqx.interfaces.IMessenger
import com.wanxing.sellerapp.seller.SellerManager

abstract class AbstractActionHandler(protected val messenger: IMessenger, protected val sellerManager: SellerManager) {

    /**
     * 若该方法报错，Broker会认为消息未发送到，导致重复收到相同的消息
     */
    abstract fun handleAction(messageId: String?, data: JSONObject, payload: EmqPayload)

}